<template>
    <div class="index">
        <CustomHead />
        <div class="content">
            <div class="left">
                <el-col :span="12">
                    <el-menu router default-active="userManage" class="el-menu-vertical-demo"
                        background-color="#2F4050" text-color="#fff" active-text-color="#ffd04b">
                        <el-menu-item index="userManage">
                            <i class="el-icon-user-solid"></i>
                            <span slot="title">用户管理</span>
                        </el-menu-item>
                        <el-menu-item index="role">
                            <i class="el-icon-edit-outline"></i>
                            <span slot="title">角色管理</span>
                        </el-menu-item>
                    </el-menu>
                </el-col>
            </div>
            <div class="right">
                <el-breadcrumb separator-class="el-icon-arrow-right">
                    <el-breadcrumb-item :to="{ path: '/' }">用户中心</el-breadcrumb-item>
                    <el-breadcrumb-item>{{ $route.meta.title }}</el-breadcrumb-item>
                </el-breadcrumb>
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>

<script>
import CustomHead from '../../components/CustomHead.vue';
export default {
    name: 'authorityCenter',
    components: {
        CustomHead,
    },
    methods: {
        toHome() {
            this.$router.push("/teacher")
        },
    }
}
</script>

<style lang="scss" scoped>
.index {
    .content {
        display: flex;

        .left {
            width: 200px;
            min-height: 100vh;

            .el-col-12 {
                width: 100%;
                height: 100%;

                .el-menu {
                    height: 100%;
                }
            }
        }

        .right {
            flex: 1;

            .el-breadcrumb {
                margin: 25px 0 0 20px;
            }
        }
    }
}
</style>